var htmlWebpackPlugin=require('html-webpack-plugin')
var path=require('path');
module.exports={
  entry:{
    main:'./src/js/main.js',
    a:'./src/js/a.js',
    b:'./src/js/b.js',
    c:'./src/js/c.js',
  },  
  output:{
    path:path.join(__dirname,'./dist'),
    filename:'js/[name]-[chunkhash].js',
    publicPath:'http://cdn.com/'
  },
  plugins:[
    new htmlWebpackPlugin({
      filename:'a.html',
      template:'index.html',
      inject:false,
      title:'this is a.html',
      excludeChunks:['b','c']
      // data:new Date(),
      // minify:{
      //   removeComments:true,
      //   collapseWhitespace:true
      // }
    }),
    new htmlWebpackPlugin({
      filename:'b.html',
      template:'index.html',
      inject:false,
      title:'this is a.html',
      excludeChunks:['a','c']
      // data:new Date(),
      // minify:{
      //   removeComments:true,
      //   collapseWhitespace:true
      // }
    }),
    new htmlWebpackPlugin({
      filename:'c.html',
      template:'index.html',
      inject:false,
      title:'this is a.html',
      excludeChunks:['b','a']
      // data:new Date(),
      // minify:{
      //   removeComments:true,
      //   collapseWhitespace:true
      // }
    })

  ]
}